/**
 * 
 */
package com.gmail.blackdog1987.carcare.activity;

import android.content.Context;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.TextView;

import com.gmail.blackdog1987.carcare.BaseActivity;
import com.gmail.blackdog1987.carcare.R;
import com.gmail.blackdog1987.carcare.network.response.handler.IResponseHandler;
import com.gmail.blackdog1987.carcare.network.response.handler.OnResponseListener;
import com.handmark.pulltorefresh.library.PullToRefreshListView;
import com.umeng.analytics.MobclickAgent;

/**
 * @author wdy
 * 
 */
public class CleanActivity extends BaseActivity implements OnClickListener,
		OnResponseListener {
	private Context mContext;
	private PullToRefreshListView mListView;
	private TextView mDistance;
	private TextView mComment;
	private TextView mPrice;
	
	protected void onCreate(Bundle savedInstanceState) {

		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_clean);
		mContext = this;

		initViews();
		initData(savedInstanceState);
		reg();
	}

	public void initViews() {
		
	}

	public void reg() {
		
	}

	public void initData(Bundle savedInstanceState) {
	}

	@Override
	public void onClick(View v) {

		switch (v.getId()) {
		default:
			break;
		}

	}
	

	@Override
	public void onResponse(IResponseHandler classz) {
		// insert db
	}

	@Override
	public void onError(IResponseHandler classz) {
		
	}

	/**
	 * umeng
	 */
	public void onResume() {
		super.onResume();
		MobclickAgent.onResume(this); // 统计时长
	}

	/**
	 * umeng
	 */
	public void onPause() {
		super.onPause();
		MobclickAgent.onPause(this);
	}
}
